Skip to content

Reusable DBSqlRowTableWithSideBar Component - #1171

Merged
kodiakhq[bot] merged 10 commits into
mainfrom
brandon/core-search-sidebar-component
Sep 17, 2025
Merged

kodiakhq[bot] merged 10 commits into
mainfrom
brandon/core-search-sidebar-component

Conversation

@brandon-pereira

@brandon-pereira brandon-pereira commented Sep 15, 2025 •

Copy link
Copy Markdown
Member

Across the app, we are inconsistent with when we can open the sidebar and expand functionality. This is because the sidebar and logic was managed by the parent component.

Additionally, the expand logic was set to assume a certain structure that some places in the application could not support (ex clickhouse dashboard doesn't have a 'source').

As a result, I have created the DBSqlRowTableWithSideBar component which will manage a lot of the common use cases for us. This PR introduces that new component, and updates all references (that could be easily upgraded) to use the new component when applciable.

The result: a lot less duplicate code (see # of lines removed) and the ability to more easily maintain the components down the road.

This PR also fixes several bugs I found as I tested these flows, especially around sidebars opening subpanels.

Fixes: HDX-2341

@changeset-bot

changeset-bot Bot commented Sep 15, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6938e81

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/app Patch
@hyperdx/api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Sep 15, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
hyperdx-v2-oss-app Ready Ready Preview Comment Sep 17, 2025 5:47pm

@github-actions

github-actions Bot commented Sep 15, 2025 •

Copy link
Copy Markdown
Contributor

Stably Runner - Test Suite - 'Smoke Test'

Test Suite Run Result: 🟢 Success (0/4 tests passed) [dashboard]


This comment was generated from stably-runner-action

@teeohhem

Copy link
Copy Markdown
Contributor

Z-Index issue with tables in dashboard tile creation
image

Nested panel UX consideration (Can be a separate ticket)
When viewing https://hyperdx-v2-oss-app-git-brandon-core-search-sideb-3fae57-hyperdx.vercel.app/services?source=l1220004729&from=1758025654000&to=1758029254000&where=&whereLanguage=sql&service=&endpoint=oteldemo.ProductCatalogService%2FGetProduct

If you click on an item within the table in the first panel, another panel opens up but the first cannot be accessed again.

@brandon-pereira

Copy link
Copy Markdown
Member Author

@teeohhem thanks for finding those bugs, they are fixed!

@teeohhem teeohhem left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks

@kodiakhq
kodiakhq Bot merged commit 7a05805 into main Sep 17, 2025
@kodiakhq
kodiakhq Bot deleted the brandon/core-search-sidebar-component branch September 17, 2025 19:58
knudtty pushed a commit that referenced this pull request Apr 16, 2026
Across the app, we are inconsistent with when we can open the sidebar and expand functionality. This is because the sidebar and logic was managed by the parent component.

Additionally, the expand logic was set to assume a certain structure that some places in the application could not support (ex clickhouse dashboard doesn't have a 'source'). 

As a result, I have created the `DBSqlRowTableWithSideBar` component which will manage a lot of the common use cases for us. This PR introduces that new component, and updates all references (that could be easily upgraded) to use the new component when applciable.

The result: a lot less duplicate code (see # of lines removed) and the ability to more easily maintain the components down the road.

This PR also fixes several bugs I found as I tested these flows, especially around sidebars opening subpanels.

Fixes: HDX-2341

This branch was successfully deployed

1 active deployment
Preview — 6938e810 Deployed Sep 17, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants